package com.act.service.api;

import com.act.domain.AttendanceManagement;
import com.act.dto.PagerDTO;
import com.act.vo.PagerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface IAttendanceManagementService {

	
	void add(AttendanceManagement attendanceManagement);
	
	void delete(int id);

	PagerVo<Map> getAllList(@Param("pagerDTO")  PagerDTO pagerDTO);

	//根据工号获取该员工本月考勤记录
	List<AttendanceManagement> getByJobnumInMonth(@Param("jobnum")String jobnum);

	//根据员工id和月份查询一个人在这个月内迟到 准时 出差的次数 例子
	List<Map> getConStatusByEidAndMonth(@Param("empId")int empId, @Param("month")int month);

	//根据日期或者包括名字查询考勤记录
	List<AttendanceManagement> getAttendanceByDateTimeOrName(@Param("year")int year,@Param("month")int month,@Param("jobnum")String jobnum);

	//查总记录数
	int getCounts();

}
